package com.firebird.app.kotlin.stock.ui.allocation_manage

import androidx.annotation.NonNull
import androidx.annotation.Nullable
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.firebird.app.kotlin.stock.R
import com.firebird.app.kotlin.stock.data.AllocationManageBean.RespDataBean.DataBean
import com.firebird.app.kotlin.stock.data.AllocationManageBean
import com.firebird.app.kotlin.stock.utils.StateUtils


class Adp(layoutResId: Int, @Nullable data: List<DataBean?>?) : BaseQuickAdapter<DataBean?, BaseViewHolder?>(layoutResId, data) {
    protected fun convert(@NonNull helper: BaseViewHolder, item: DataBean) {
        helper.setText(R.id.item_planid, item.orderNo)
                .setText(R.id.item_date, "申请时间：" + item.addTime)
                .setText(R.id.item_state, StateUtils.getState(item.bpStatus + ""))
                .setText(R.id.item_cash, item.guaranteeAmt + "")
                .setText(R.id.item_totle, item.totalAmt + "")
    }
}